#include<iostream>
using namespace std;
int f[14]={0,1,2,3,4,5,6,7,8,9,10,10,10,10};
int main(){
	int a,b,c,d,e;
	cin>>a>>b>>c>>d>>e;
	if((a==b&&b==c&&c==d)||(a==b&&b==c&&c==e)||(a==b&&b==d&&d==e)||(a==c&&c==d&&d==e)||(b==c&&c==d&&d==e)){
		cout<<"quadra bomb orz";
		return 0;
	}
	if(a<5&&b<5&&c<5&&d<5&&e<5&&a+b+c+d+e<=10){
		cout<<"penta calf";
		return 0;
	}
	int s=f[a]+f[b]+f[c]+f[d]+f[e];
	if((f[a]+f[b]+f[c])%10==0||(f[a]+f[b]+f[d])%10==0||(f[a]+f[b]+f[e])%10==0||(f[a]+f[c]+f[d])%10==0||(f[a]+f[c]+f[e])%10==0||(f[a]+f[d]+f[e])%10==0||(f[b]+f[c]+f[d])%10==0||(f[b]+f[c]+f[e])%10==0||(f[b]+f[d]+f[e])%10==0||(f[c]+f[d]+f[e])%10==0){
		if(s%10==0){
			cout<<"you can you up";
		}
		else{
			cout<<"too young too simple:calf "<<s%10;
		}
		return 0;
	}
	cout<<"gg";
	return 0;
}